/**
 * 北京钉图互动科技 all right reserver
 */
package com.sincebest.fivestar;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;

import com.sincebest.fivestar.common.exception.EnableApiStyleExceptionHandler;

/**
 * spring-boot应用入口
 *
 * @author peter
 * @since 2016年5月31日
 */
@SpringBootApplication(scanBasePackages = { "com.sincebest.fivestar"}, exclude = { DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class })
@ImportResource({"classpath*:/data-access-center/data-access.xml"})
@EnableApiStyleExceptionHandler
public class RobotApplication extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(RobotApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(RobotApplication.class, args);
	}

}
